package com.api.mc
{
	import com.api.StaticData;
	import com.api.vo.RecommendObjVO;
	import com.game.btnClass.BtnClass_goto;
	import com.game.utils.LoadSwf;
	
	import flash.display.LoaderInfo;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	import flash.text.TextField;
	
	public class RecommendListMc extends BasicMc
	{
		public var txt:TextField;
		private var _load:LoadSwf;
		public var rObj:RecommendObjVO;
		
		public function RecommendListMc(obj:RecommendObjVO)
		{
			_load = new LoadSwf();
			stop();
			rObj = obj;
			txt.text = rObj.title;
			addMouseEvent(new BtnClass_goto(this, onClick));
			_load.setLoad(StaticData.config.gameImage + rObj.id + ".jpg", loadCom);
		}
		
		private function loadCom(param1:LoaderInfo) : void
		{
			var _loc_2:* = param1.content;
			var _loc_3:int = 2;
			_loc_2.y = 2;
			_loc_2.x = _loc_3;
			addChild(_loc_2);
		}
		
		private function onClick() : void
		{
			navigateToURL(new URLRequest("http://www.3366.com/flash/" + rObj.gid + ".shtml"), "_blank");
		}
		
		public function gc() : void
		{
			delMouseEvent();
			delThisAllDis();
			_load = null;
			rObj = null;
		}
		
	}
}
